 

	<!-- bootstrap / 询问窗 start-->
	<!-- 文档地址 https://getbootstrap.net/docs/components/modal/ -->
	<button type="button" id="bs-confirm"  class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
	  询问窗
	</button>
	<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" >
	  <div class="modal-dialog" role="document" style="font-size: 14px">
	    <div class="modal-content">
	      <div class="modal-header">
	        <h5 class="modal-title">Modal title</h5>
	        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
	          <span aria-hidden="true">&times;</span>
	        </button>
	      </div>
	      <div class="modal-body">
	        <p>Modal body text goes here.</p>
	      </div>
	      <div class="modal-footer">
	        <button type="button" class="btn btn-primary">Save changes</button>
	        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
	      </div>
	    </div>
	  </div>
	</div>
	
	<script type="text/javascript">
		//获取button元素
		var btn=$('#bs-confirm');
		//为了方便演示，先初始化一个点击事件。
		btn.click();

		//获取模态框的save按钮
		var savebtn=$('.modal-footer .btn-primary');
		savebtn.click(function(){
			console.log($(this).html());
			//dosomething....
		})
	</script>
	<!-- bootstrap / 询问窗 end-->